// Lean compiler output
// Module: Lean.Compiler.ModPkgExt
// Imports: public import Lean.Environment import Lean.Compiler.NameMangling
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l___auto___closed__18_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__3(lean_object*);
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__10_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_PersistentEnvExtension_getState___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto___closed__23_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__9_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__8_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__11_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto___closed__3_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* lean_get_symbol_stem(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__3_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__12_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_modPkgExt;
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__6_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
lean_object* l_Array_empty(lean_object*);
lean_object* l_Lean_mkPackageSymbolPrefix(lean_object*);
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited___redArg___boxed(lean_object*);
lean_object* l_Lean_instInhabitedPersistentEnvExtension(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited___boxed(lean_object*, lean_object*);
static lean_object* l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0;
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__1_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__2(lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Environment_getModulePackageByIdx_x3f___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
static lean_object* l___auto___closed__13_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___auto___closed__28_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
lean_object* l_Lean_PersistentEnvExtension_setState___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___redArg(lean_object*);
static lean_object* l___auto___closed__27_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__3___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto___closed__7_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__15_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__1___boxed(lean_object*, lean_object*);
static lean_object* l___auto___closed__19_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
lean_object* lean_array_fget(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__6_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Environment_getModulePackage_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Environment_setModulePackage(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___lam__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_(lean_object*);
static lean_object* l___auto___closed__9_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__4_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__7_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__5_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__4_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l_Lean_Environment_getModulePackageByIdx_x3f___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2____boxed(lean_object*);
static lean_object* l___auto___closed__25_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__21_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__20_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*);
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__8_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__17_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__24_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr1(lean_object*);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__2_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
static lean_object* l___auto___closed__16_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
static lean_object* l___auto___closed__26_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___lam__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2____boxed(lean_object*, lean_object*);
lean_object* l_Lean_mkAtom(lean_object*);
lean_object* l_Lean_Name_mangle(lean_object*, lean_object*);
lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__4(lean_object*);
static lean_object* l___auto___closed__22_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Environment_getModulePackageByIdx_x3f(lean_object*, lean_object*);
static lean_object* l___auto___closed__14_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited___redArg(lean_object*);
static lean_object* _init_l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l___auto___closed__3_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9);
return x_1;
}
}
static lean_object* _init_l___auto___closed__4_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto___closed__3_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_4 = l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___auto___closed__6_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18);
return x_1;
}
}
static lean_object* _init_l___auto___closed__7_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto___closed__6_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_4 = l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___auto___closed__8_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l___auto___closed__9_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___auto___closed__8_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("exact", 5, 5);
return x_1;
}
}
static lean_object* _init_l___auto___closed__11_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_4 = l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___auto___closed__12_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l_Lean_mkAtom(x_1);
return x_2;
}
}
static lean_object* _init_l___auto___closed__13_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__12_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___auto___closed__14_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l___auto___closed__15_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declName", 8, 8);
return x_1;
}
}
static lean_object* _init_l___auto___closed__16_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto___closed__15_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__14_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_4 = l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___auto___closed__17_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("decl_name%", 10, 10);
return x_1;
}
}
static lean_object* _init_l___auto___closed__18_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___auto___closed__17_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l_Lean_mkAtom(x_1);
return x_2;
}
}
static lean_object* _init_l___auto___closed__19_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__18_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___auto___closed__20_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___auto___closed__19_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__16_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l___auto___closed__21_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__20_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__13_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___auto___closed__22_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___auto___closed__21_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__11_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l___auto___closed__23_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__22_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___auto___closed__24_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___auto___closed__23_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__9_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l___auto___closed__25_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__24_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___auto___closed__26_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___auto___closed__25_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__7_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l___auto___closed__27_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__26_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___auto___closed__28_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___auto___closed__27_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___auto___closed__4_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l___auto_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto___closed__28_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_1(x_1, lean_box(0));
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_registerModuleEnvExtension___redArg___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_registerModuleEnvExtension___redArg___lam__1(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__2(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0;
x_5 = lean_array_push(x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_3);
x_5 = l_Lean_registerModuleEnvExtension___redArg___lam__2(x_1, x_2, x_4);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_box(0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__3___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_registerModuleEnvExtension___redArg___lam__3(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___lam__4(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc_ref(x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_registerModuleEnvExtension___redArg___lam__0___boxed), 4, 1);
lean_closure_set(x_4, 0, x_1);
x_5 = lean_alloc_closure((void*)(l_Lean_registerModuleEnvExtension___redArg___lam__1___boxed), 2, 0);
x_6 = lean_alloc_closure((void*)(l_Lean_registerModuleEnvExtension___redArg___lam__2___boxed), 3, 0);
x_7 = lean_alloc_closure((void*)(l_Lean_registerModuleEnvExtension___redArg___lam__3___boxed), 1, 0);
x_8 = lean_alloc_closure((void*)(l_Lean_registerModuleEnvExtension___redArg___lam__4), 1, 0);
x_9 = lean_box(2);
x_10 = lean_box(0);
x_11 = lean_alloc_ctor(0, 8, 0);
lean_ctor_set(x_11, 0, x_2);
lean_ctor_set(x_11, 1, x_1);
lean_ctor_set(x_11, 2, x_4);
lean_ctor_set(x_11, 3, x_5);
lean_ctor_set(x_11, 4, x_6);
lean_ctor_set(x_11, 5, x_7);
lean_ctor_set(x_11, 6, x_9);
lean_ctor_set(x_11, 7, x_10);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_8);
x_13 = l_Lean_registerPersistentEnvExtensionUnsafe___redArg(x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_registerModuleEnvExtension___redArg(x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_registerModuleEnvExtension(x_1, x_2, x_3, x_4);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_registerModuleEnvExtension___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_registerModuleEnvExtension___redArg(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instInhabitedPersistentEnvExtension(lean_box(0), lean_box(0), lean_box(0), x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instInhabitedPersistentEnvExtension(lean_box(0), lean_box(0), lean_box(0), x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_ModuleEnvExtension_instInhabited(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_instInhabited___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_ModuleEnvExtension_instInhabited___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = 0;
x_6 = l_Lean_PersistentEnvExtension_getModuleEntries___redArg(x_1, x_2, x_3, x_4, x_5);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_get_size(x_6);
x_9 = lean_nat_dec_lt(x_7, x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; 
lean_dec_ref(x_6);
x_10 = lean_box(0);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_array_fget(x_6, x_7);
lean_dec_ref(x_6);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_ModuleEnvExtension_getStateByIdx_x3f(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___lam__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_3, 0, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_private", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__1_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_2 = lean_box(0);
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__2_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__1_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__3_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Compiler", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__4_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__3_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__2_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__5_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ModPkgExt", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__6_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__5_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__4_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__7_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__6_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_3 = l_Lean_Name_num___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__8_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_;
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__7_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__9_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("modPkgExt", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__10_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__9_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__8_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___lam__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2____boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___lam__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_box(0);
x_3 = lean_alloc_closure((void*)(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___lam__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2____boxed), 2, 1);
lean_closure_set(x_3, 0, x_2);
x_4 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__10_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_;
x_5 = l_Lean_registerModuleEnvExtension___redArg(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2____boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
return x_2;
}
}
static lean_object* _init_l_Lean_Environment_getModulePackageByIdx_x3f___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Compiler_ModPkgExt_0__Lean_modPkgExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Environment_getModulePackageByIdx_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = l_Lean_Environment_getModulePackageByIdx_x3f___closed__0;
x_5 = l_Lean_ModuleEnvExtension_getStateByIdx_x3f___redArg(x_3, x_4, x_1, x_2);
if (lean_obj_tag(x_5) == 0)
{
return x_3;
}
else
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Environment_getModulePackageByIdx_x3f___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Environment_getModulePackageByIdx_x3f(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Environment_getModulePackage_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_2 = l_Lean_Environment_getModulePackageByIdx_x3f___closed__0;
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_3, 2);
lean_inc(x_4);
lean_dec_ref(x_3);
x_5 = lean_box(0);
x_6 = lean_box(0);
x_7 = l_Lean_PersistentEnvExtension_getState___redArg(x_5, x_2, x_1, x_4, x_6);
lean_dec(x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Environment_setModulePackage(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Environment_getModulePackageByIdx_x3f___closed__0;
x_4 = l_Lean_PersistentEnvExtension_setState___redArg(x_3, x_2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* lean_get_symbol_stem(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_7; 
x_7 = l_Lean_Environment_getModuleIdxFor_x3f(x_1, x_2);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = l_Lean_Environment_getModulePackageByIdx_x3f___closed__0;
x_9 = lean_ctor_get(x_8, 0);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_9, 2);
lean_inc(x_10);
lean_dec_ref(x_9);
x_11 = lean_box(0);
x_12 = lean_box(0);
x_13 = l_Lean_PersistentEnvExtension_getState___redArg(x_11, x_8, x_1, x_10, x_12);
lean_dec(x_10);
x_3 = x_13;
goto block_6;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_7, 0);
lean_inc(x_14);
lean_dec_ref(x_7);
x_15 = l_Lean_Environment_getModulePackageByIdx_x3f(x_1, x_14);
lean_dec(x_14);
lean_dec_ref(x_1);
x_3 = x_15;
goto block_6;
}
block_6:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Lean_mkPackageSymbolPrefix(x_3);
lean_dec(x_3);
x_5 = l_Lean_Name_mangle(x_2, x_4);
return x_5;
}
}
}
lean_object* initialize_Lean_Environment(uint8_t builtin);
lean_object* initialize_Lean_Compiler_NameMangling(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Compiler_ModPkgExt(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Environment(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Compiler_NameMangling(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__0_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__1_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__2_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__3_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__3_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__3_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__4_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__4_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__4_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__5_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__6_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__6_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__6_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__7_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__7_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__7_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__8_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__8_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__8_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__9_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__9_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__9_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__10_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__11_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__11_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__11_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__12_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__12_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__12_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__13_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__13_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__13_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__14_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__14_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__14_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__15_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__15_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__15_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__16_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__16_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__16_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__17_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__17_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__17_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__18_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__18_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__18_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__19_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__19_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__19_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__20_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__20_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__20_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__21_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__21_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__21_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__22_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__22_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__22_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__23_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__23_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__23_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__24_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__24_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__24_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__25_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__25_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__25_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__26_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__26_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__26_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__27_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__27_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__27_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto___closed__28_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto___closed__28_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto___closed__28_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l___auto_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_ = _init_l___auto_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_();
lean_mark_persistent(l___auto_00___x40_Lean_Compiler_ModPkgExt_2505972427____hygCtx___hyg_10_);
l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0 = _init_l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0();
lean_mark_persistent(l_Lean_registerModuleEnvExtension___redArg___lam__2___closed__0);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__0_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__1_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__1_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__1_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__2_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__2_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__2_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__3_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__3_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__3_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__4_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__4_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__4_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__5_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__5_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__5_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__6_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__6_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__6_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__7_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__7_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__7_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__8_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__8_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__8_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__9_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__9_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__9_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__10_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_ = _init_l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__10_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn___closed__10_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_);
res = l___private_Lean_Compiler_ModPkgExt_0__Lean_initFn_00___x40_Lean_Compiler_ModPkgExt_1097734621____hygCtx___hyg_2_();
if (lean_io_result_is_error(res)) return res;
l___private_Lean_Compiler_ModPkgExt_0__Lean_modPkgExt = lean_io_result_get_value(res);
lean_mark_persistent(l___private_Lean_Compiler_ModPkgExt_0__Lean_modPkgExt);
lean_dec_ref(res);
l_Lean_Environment_getModulePackageByIdx_x3f___closed__0 = _init_l_Lean_Environment_getModulePackageByIdx_x3f___closed__0();
lean_mark_persistent(l_Lean_Environment_getModulePackageByIdx_x3f___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
